home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 11 / AMUG BBS in a Box Volume XI (April 1994) (MacWizards).iso / Files / Prog / T / ToolsPlus 2.1.sit / Tools Plus 2.1 ƒ / Tools Plus 2.1 (C & Pascal) / User Manual / 00-Contents < prev    next >
Encoding:
Text File  |  1993-10-24  |  10.3 KB  |  321 lines  |  [TEXT/ttxt]

  1. Contents
  2. ````````
  3.  
  4.   1  Introduction to Tools Plus
  5.          What is Tools Plus
  6.          An Overview of Tools Plus
  7.          Who can benefit from Tools Plus
  8.          What kind of applications can be written with Tools Plus
  9.          What is Tools Plus not suitable for
  10.          System Requirements
  11.          Tools Plus Source Code and Site Licensing
  12.          Assumptions made when writing this manual
  13.          Convensions used throughout this manual
  14.          Software Updates
  15.          Your Development Environment
  16.          For your information (recommended reading)
  17.  
  18.   2  Installing Tools Plus
  19.          Tools Plus Contents
  20.          Installing Tools Plus for THINK C
  21.              Adding Tools Plus to a THINK C Project
  22.              THINK C Compiler Options
  23.              Tools Plus Segments in THINK C
  24.          Installing Tools Plus for THINK Pascal
  25.              Adding Tools Plus to a THINK Pascal Project
  26.              After Compiling
  27.              Tools Plus Segments in THINK Pascal
  28.  
  29.   3  Designing Your Application
  30.          The Macintosh’s Events
  31.          Macintosh Event Queue
  32.          Key Up Events
  33.          Tools Plus Events
  34.          The Main Event Loop
  35.          Finder (System 6) vs MultiFinder (System 6) and System 7
  36.              Finder
  37.              MultiFinder
  38.              System 7
  39.          The Pascal Interface file (ToolsPlus.p)
  40.          The C Header file (ToolsPlus.h)
  41.          Range Checking
  42.          What to read next
  43.  
  44.   4  Initialization
  45.          Initializing Tools Plus
  46.          Initialization Failure
  47.          Other Initialization
  48.          The Cursor
  49.  
  50.   5  Windows
  51.          Overview
  52.              Title Bar, Close box, and Zoom box
  53.              Size Box
  54.              Maximum Number of Open Windows
  55.              Active Window
  56.              Current Window
  57.              Modal Windows
  58.              Global and Local Co-ordinates
  59.              Handling Windows
  60.          Opening a window
  61.          Closing a window
  62.          Activating a window
  63.          Making a window current without activating it
  64.          Making the active window current
  65.          Changing a window’s title
  66.          Setting a window’s cursor dragging boundary
  67.          Setting size limits
  68.          Setting the “standard” and “user” co-ordinates for zooming
  69.          Getting the “standard” and “user” co-ordinates for zooming
  70.          Getting a window’s status information
  71.          Getting the window number of the active window
  72.          Getting the window number of the current window
  73.          Getting your applications front most window number
  74.          Getting a window’s pointer
  75.  
  76.   6  Buttons
  77.          Overview
  78.              Button Types
  79.              Button States
  80.              Button Titles
  81.              Default Button
  82.              Handling Buttons
  83.          Creating a new button
  84.              Fonts
  85.              Default Button
  86.          Deleting a button
  87.          Enabling/Disabling a button
  88.          Selecting/Deselecting a button
  89.          Determining if a button is enabled
  90.          Determining if a button is selected
  91.          Changing a button’s title
  92.          Flashing a button (simulating selection)
  93.          Setting a default button
  94.          Removing the “default button” status from a window
  95.  
  96.   7  Scroll Bars
  97.          Overview
  98.              Scroll Bar States
  99.              Handling Scroll Bars
  100.          Creating a new scroll bar
  101.          Deleting a scroll bar
  102.          Enabling/Disabling a scroll bar
  103.          Getting a scroll bar’s minimum setting limit
  104.          Setting a scroll bar’s minimum setting limit
  105.          Getting a scroll bar’s maximum setting limit
  106.          Setting a scroll bar’s maximum setting limit
  107.          Getting a scroll bar’s current value
  108.          Setting a scroll bar’s current value
  109.  
  110.   8  Editing Fields
  111.          Overview
  112.              Field Length Capacity
  113.              Alignment of text in a field
  114.              The Active Field
  115.              The Field’s String & Edited Text
  116.              Fonts
  117.              Length Limited Fields
  118.              Word Wrap
  119.              Clicking and Tabbing in fields
  120.              Using Fields
  121.              Editing Fields and Typed Characters… What Happens?
  122.              Old Macintosh keyboard with numeric pad
  123.              The Edit Menu
  124.              Handling Fields
  125.              Special Handling of Fields
  126.          Creating a new field
  127.              Fonts
  128.          Deleting a field
  129.          Activating a field
  130.          Activating a field
  131.          Clicking in an inactive field
  132.          Getting the active field’s edited text
  133.          Saving the active field’s edited text as the field’s string
  134.          Getting the active field’s number
  135.          Turning field length limiting on/off
  136.          Repositioning a field
  137.              Scrolling fields
  138.          Pasting into a field under your application’s control
  139.  
  140.   9  List Boxes
  141.          Overview
  142.              Fonts
  143.              Handling List Boxes
  144.          Creating a new list box
  145.              Selection Methods
  146.              Fonts
  147.          Deleting a list box
  148.          Adding a new line / replacing an existing line in a list box
  149.          Getting a line’s text
  150.          Searching lines for specific text (alphabetic order)
  151.          Selecting/Deselecting a line
  152.          Determine if a line is selected
  153.          Determine the next selected line number
  154.          Inserting a blank line into a list box
  155.          Deleting a line
  156.          Turning a list box’s drawing on/off
  157.  
  158.  10  Menus
  159.          Overview
  160.              Menus and MultiFinder or System 7
  161.              Edit Menu
  162.              Desk Accessories
  163.              Editing Fields
  164.              Menus and Editing Fields
  165.              Menus and Desk Accessories
  166.              Command Key Equivalents
  167.              Handling Menus
  168.          Creating the Apple menu
  169.          Creating/renaming a menu or menu item
  170.              Meta Characters
  171.          Inserting a menu item
  172.          Deleting a menu or menu item
  173.          Updating the menu bar (redrawing it)
  174.          Rename a menu item
  175.          Enabling/disabling a menu or menu item
  176.          Check mark (displaying/hiding)
  177.          Special marks (displaying/hiding)
  178.          Changing a menu item’s style
  179.          Highlight or unhighlight a menu
  180.  
  181.  11  Cursors
  182.          Overview
  183.              Automatic Cursor Changes
  184.              The Watch Cursor
  185.              Starting your application
  186.              The Cursor Table
  187.              Advanced Features
  188.              Cursor Animation
  189.              Handling Cursors
  190.          Changing the cursor’s shape
  191.          Resetting cursor shape according to window orientation
  192.          Creating a new cursor table
  193.          Deleting a cursor table
  194.          Creating a new cursor zone/replacing a cursor zone
  195.          Deleting a cursor zone
  196.          Deleting a cursor zone
  197.          Making a window use a cursor table (or stop using one)
  198.          Determining which cursor zone contains a specified point
  199.          Enabling/disabling button clicks during a watch cursor
  200.  
  201.  12  System Polling
  202.          Overview
  203.          What Is Polling?
  204.          Task Switching
  205.          Macintosh Events
  206.          Watch Cursor -- a busy system
  207.          The Event Queue
  208.          Tools Plus Event Record
  209.          Event Record Fields
  210.          Event Modifiers
  211.              Event Modifiers Using C
  212.              Event Modifiers Using Pascal
  213.          PollSystem (System polling)
  214.              Tools Plus Event Codes
  215.              What Does PollSystem Do?
  216.                  Internally Processed Events
  217.                  Externally Processed Events
  218.              Inside PollSystem
  219.              Translating Toolbox events to Tools Plus events
  220.          Responding to Events
  221.              doNothing
  222.              doChgWindow
  223.              doRefresh
  224.              doGoAway
  225.              doButton
  226.              doMenu
  227.              doKeyDown
  228.              doAutoKey
  229.              doKeyUp
  230.              doClickField
  231.              doScrollBar
  232.              doListBox
  233.              doClick
  234.              doClickControl
  235.              doManual
  236.              doMoveWindow
  237.              doGrowWindow event
  238.              doClickDesk
  239.              doZoomWindow
  240.              doSuspend
  241.              doResume
  242.          Discontinuing multiple clicks or drags
  243.          Determining if your application is suspended
  244.          “Field to Event” Cross reference
  245.  
  246.  13  Color Drawing & Multiple Monitors
  247.          Overview
  248.              Using One Monitor
  249.              Using Multiple Monitors
  250.              Changing Screen Settings
  251.          Determining if Color QuickDraw is used
  252.          Determining the number of logical screens
  253.          Beginning color-dependent drawing on a window
  254.          Ending color-dependent drawing on a window
  255.          Determining the number of colors on a screen
  256.          Determining if the screen is set to draw in color
  257.          Resetting the current window’s pen to default values
  258.          Getting the current window’s pen settings
  259.          Setting the current window’s pen settings
  260.  
  261.  14  Miscellaneous Routines
  262.          Overview
  263.          Displaying a Dynamic Alert
  264.              What are Dynamic Alerts?
  265.              Icons
  266.              Text
  267.              Buttons
  268.              Custom Button Combinations
  269.              Function’s Value
  270.              Advanced Techniques
  271.          Changing button titles on Dynamic Alerts
  272.          Drawing an icon
  273.              Intelligent Icon Drawing
  274.              Icon Family
  275.              Icon Selection
  276.              Drawing the Icon, Selecting, Disabling, and Masking
  277.              Creating Your Own Icons
  278.          Determining the System version
  279.          Determining the System version
  280.          Wait for a specified time
  281.          Drawing “Zoom Lines”
  282.          Drawing a standard Macintosh progress thermometer
  283.          Determining the minimum value of two numbers
  284.          Determining the maximum value of two numbers
  285.  
  286.  15  Other Macintosh Features
  287.          Overview
  288.              Alerts
  289.              Dialogs
  290.              Custom Controls
  291.              Lists
  292.  
  293.  16  Memory
  294.          Overview
  295.              Measurements
  296.              Routines that consume heap space (by category)
  297.              Routines that consume heap space (alphabetic)
  298.              Good memory habits
  299.  
  300.  17  Font Heights
  301.          Font heights table
  302.  
  303.  18  Special Routines
  304.          Use these routines with caution, or don’t use them!
  305.  
  306.  19  Completing Your Application
  307.          Overview
  308.          Application’s Icons
  309.              Icon Family
  310.          File Types, Creators, and the Application Signature
  311.              Signature (the Creator code)
  312.          Bundle
  313.          Version
  314.          mstr Resources
  315.          SIZE Resource
  316.              Cloned SIZE resources
  317.  
  318.  20  Technical Support
  319.          What does Technical Support do?
  320.          What doesn’t Technical Support do?
  321.